<div class="post">
	<div class="title">
		<?php echo CHtml::link(CHtml::encode($data->title), $data->url); ?>
	</div>
	<div class="author">
		<?php echo BlogModule::t('posted by {author} on {date}', array(
            '{author}'=>$data->author->username,
            '{date}'=>Yii::app()->dateFormatter->format('M MMMM yyyy',$data->create_time)));
        ?>
	</div>
	<div class="content">
		<?php
			$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
			echo $data->content;
			$this->endWidget();
		?>
	</div>
	<div class="nav">
		<b><?php echo BlogModule::t('Tags');?>:</b>
		<?php echo implode(', ', $data->tagLinks); ?>
		<br/>
		<?php echo CHtml::link(BlogModule::t('Permalink'), $data->url); ?> |
		<?php echo CHtml::link(BlogModule::t('Comments ({coount})', array('{count}'=>$data->commentCount)),$data->url.'#comments'); ?> |
		<?php echo BlogModule::t('Last updated on {date}', array('{date}'=>Yii::app()->dateFormatter->format('M MMMM yyyy',$data->create_time))); ?>
	</div>
</div>
